package com.ruoyi.travel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.travel.domain.TravelProduct;
import com.ruoyi.travel.mapper.TravelProductMapper;
import com.ruoyi.travel.service.ITravelProductService;

/**
 * 旅游产品Service业务层处理
 * 
 * @author ruoyi
 */
@Service
public class TravelProductServiceImpl implements ITravelProductService
{
    @Autowired
    private TravelProductMapper travelProductMapper;

    @Override
    public TravelProduct selectTravelProductById(Long productId)
    {
        return travelProductMapper.selectTravelProductById(productId);
    }

    @Override
    public List<TravelProduct> selectTravelProductList(TravelProduct travelProduct)
    {
        return travelProductMapper.selectTravelProductList(travelProduct);
    }

    @Override
    public List<TravelProduct> searchTravelProducts(TravelProduct travelProduct)
    {
        return travelProductMapper.searchTravelProducts(travelProduct);
    }

    @Override
    public List<TravelProduct> selectHotProducts()
    {
        return travelProductMapper.selectHotProducts();
    }

    @Override
    public int insertTravelProduct(TravelProduct travelProduct)
    {
        return travelProductMapper.insertTravelProduct(travelProduct);
    }

    @Override
    public int updateTravelProduct(TravelProduct travelProduct)
    {
        return travelProductMapper.updateTravelProduct(travelProduct);
    }

    @Override
    public int deleteTravelProductById(Long productId)
    {
        return travelProductMapper.deleteTravelProductById(productId);
    }

    @Override
    public int deleteTravelProductByIds(Long[] productIds)
    {
        return travelProductMapper.deleteTravelProductByIds(productIds);
    }
}

